package com.hb.core.pojo.project.calibration.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 中标通知书关联投标人表
 * </p>
 *
 * @author admin
 * @since 2021-09-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_bid_win_result_supply")
@ApiModel(value = "SuccessfulNoticeSupply对象", description = "中标通知书关联投标人表")
public class BidWinResultSupply extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标段id")
    private Long sectionId;

    @ApiModelProperty(value = "中标通知书ID")
    private Long winResultId;

    @ApiModelProperty(value = "通知书类型(1：中标通知书   2：招标结果通知书)")
    private Integer noticeType;

    @ApiModelProperty(value = "投标人ID")
    private Long bidderId;

    @ApiModelProperty(value = "组织机构Id")
    private Long orgId;

    @ApiModelProperty(value = "中标金额")
    private BigDecimal successfulAmount;

    @ApiModelProperty(value = "中标通知书")
    private Attachments successfulConfirmation;

    @ApiModelProperty(value = "统一社会信用编码")
    private String creditCode;

    @ApiModelProperty(value = "中标人名称")
    private String orgName;

    @ApiModelProperty("总中标金额")
    @TableField(exist = false)
    private Long successfulAmountCount;

    @ApiModelProperty("已发布中标公告标段数")
    @TableField(exist = false)
    private Long bidWinCount;
}
